import req from '@/utils/request'
const baseURL = process.env.VUE_APP_BASE_URL

export function getTasks(data) {
    return req({
        method: 'get',
        url: baseURL + "/superlink/api/production/tasks",
        params: data
    })
}

export function delTasks(token) {
    return req({
        method: 'delete',
        url: baseURL + "/superlink/api/production/delete/task/" + token,
    })
}
export function putTasks(data, token) {
    return req({
        method: 'put',
        url: baseURL + "/superlink/api/production/update/task/" + token,
        data
    })
}
export function postTasks(data) {
    return req({
        method: 'post',
        url: baseURL + "/superlink/api/production/create/task",
        data
    })
}
export function getTaskDetails(token) {
    return req({
        method: 'get',
        url: baseURL + "/superlink/api/production/task/" + token,
    })
}


